GtkFlowBox: Explicitly notify orientation
authorMatthias Clasen <mclasen@redhat.com>
Sun, 8 Jun 2014 15:57:27 +0000 (11:57 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 9 Jun 2014 17:31:01 +0000 (13:31 -0400)
gtk/gtkflowbox.c

index 28e6345271c8c7840d208a151cd783436518774a..84c837bdad584de4efc68dcf8f96d70eb16af132 100644 (file)
@@ -3555,15 +3555,13 @@ gtk_flow_box_set_property (GObject      *object,
   switch (prop_id)
     {
     case PROP_ORIENTATION:
-      {
-        GtkOrientation orientation = g_value_get_enum (value);
-        if (priv->orientation != orientation)
-          {
-            priv->orientation = orientation;
-            /* Re-box the children in the new orientation */
-            gtk_widget_queue_resize (GTK_WIDGET (box));
-          }
-      }
+      if (priv->orientation != g_value_get_enum (value))
+        {
+          priv->orientation = g_value_get_enum (value);
+          /* Re-box the children in the new orientation */
+          gtk_widget_queue_resize (GTK_WIDGET (box));
+          g_object_notify_by_pspec (object, pspec);
+        }
       break;
     case PROP_HOMOGENEOUS:
       gtk_flow_box_set_homogeneous (box, g_value_get_boolean (value));